<section class="read-more">
   {% if page.next %}
        {% assign current = page.next %}
        <div class="read-more-item">
                <span class="read-more-item-dim">Next article</span>
                        <h2 class="post-list__post-title "
                                <a href="{{site.baseurl}}{{ current.url }}" title="link to {{ current.title }}">{{current.title }}
                                        
                                </a>
                        </h2>
                <p class="excerpt">{{ current.content | markdownify | strip_html | strip_newlines | truncate: 50 }}&hellip;</p>
                <div class="post-list__meta"><time datetime="{{current.date | date: date_to_xmlschema}}" class="post-list__meta--date date">{{current.date
                        | date: "%F"}}</time> &#8226; <span class="post-list__meta--tags tags">{{current.tags | join:' '}}</span><a
                        class="btn-border-small" href={{site.baseurl}}{{current.url}}>Read more</a></div>
        </div>
   {% endif %}
   
   {% if page.previous %}
   {% assign current = page.previous %}
   <div class="read-more-item">
       <span class="read-more-item-dim">Previous article</span>
<h2 class="post-list__post-title "><a href="{{site.baseurl}}{{ current.url }}" title="link to {{ current.title }}">{{
        current.title }}</a></h2>
       <p class="excerpt">{{ current.content | markdownify | strip_html | strip_newlines | truncate: 50 }}&hellip;</p>
<div class="post-list__meta"><time datetime="{{current.date | date: date_to_xmlschema}}" class="post-list__meta--date date">{{current.date
        | date: "%F"}}</time> &#8226; <span class="post-list__meta--tags tags">{{current.tags | join:' '}}</span><a
        class="btn-border-small" href={{site.baseurl}}{{current.url}}>Read more</a></div>
   </div>
   {% endif %}
</section>
